package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.Reply_suggestDao;
import dao.SuggestDao;
import entity.Reply_suggest;
import entity.Suggest;
import service.SuggestService;

@Service
public class SuggestServiceImpl implements SuggestService {
	@Resource(name = "suggestDao")
	private SuggestDao sd;
	
	@Resource(name="reply_suggestDao")
	private Reply_suggestDao rsd;

	public Reply_suggestDao getRsd() {
		return rsd;
	}

	public void setRsd(Reply_suggestDao rsd) {
		this.rsd = rsd;
	}

	public SuggestDao getSd() {
		return sd;
	}

	public void setSd(SuggestDao sd) {
		this.sd = sd;
	}

	public List<Suggest> getList() {
		
		return sd.getList();
	}

	public List<Reply_suggest> getReplyList() {
		return rsd.getList();
	}

	public void addSuggest(Suggest s) {
		sd.add(s);
	}

	public void addReplySuggest(Reply_suggest rs) {
		rsd.add(rs);
	}

}
